package com.boco.blch.analysiser.compliance.HW.manager;

import com.boco.blch.analysiser.compliance.ComplianceResolved;

public class BOCO_ZooKeeper_IdentityAuth_InterfaceAuth implements ComplianceResolved{

	@Override
	public int realEchoResolved(String echoResult) {
		String str=echoResult.replaceAll(" ", "");
		if(echoResult != null && echoResult.trim().length() > 0){
			if(echoResult.contains(NotFindFile)){
				return FAILED;
			}else if(str.contains("HADOOP_SECURITY_AUTHENTICATION=kerberos")&&str.contains("-Dzookeeper.enforce.auth.enabled\\=true")){
				return SUCCESS;
			}
		}
		return FAILED;
	}
}
